import { pinyin, convert } from 'pinyin-pro'

/**
 * 获取字符串首字母
 */
export const getTextHeadLetter = (word: string) => {
  const res = pinyin(word[0])
  return convert(res[0], {
    format: 'toneNone',
  })
}
